class Person{
    constructor(name){
        this.name = name
    }
    getname(){
        return this.name
    }
}

//编译成ES5
function Person(name){
    this.name = name;
}
Psecon.prototype.getName = function () {
    return this.name;
}